package com.wgj.android.fragment;

import android.os.Bundle;
import android.view.View;

import com.jiaai.xui.base.XFragment;
import com.jiaai.xui.jsbridge.BridgeWebView;
import com.jiaai.xui.view.widget.loadingview.XLoadingView;
import com.wgj.android.R;
import com.wgj.android.http.WGJAPI;
import com.wgj.android.web.WGJWebClient;
import com.wgj.android.web.WGJWebFunctionUtils;
import com.wgj.android.web.entity.WebConfig;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2017/11/9.
 */

public class ServerFragment extends XFragment {

    @BindView(R.id.webView)
    BridgeWebView webView;

    @Override
    public int getLayoutId() {
        return R.layout.server_fragment;
    }

    @Override
    public void initData(Bundle bundle) {

    }

    @Override
    public void initView() {

        ButterKnife.bind(this,getView());

        webView=getView().findViewById(R.id.webView);
        webView.setBridgeWebViewClient(new WGJWebClient(webView));
        WGJWebFunctionUtils.bindFunction(webView,getFragmentManager());
        WGJWebFunctionUtils.initSetting(webView);
        webView.loadUrl(WGJAPI.BASEURL+"page/serverpage");
    }
}
